package com.zbf.config;

import io.minio.MinioClient;
import io.minio.errors.InvalidEndpointException;
import io.minio.errors.InvalidPortException;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/9  17:29
 * 描述:
 */
@Configuration
public class MonioConfig {

   @Bean
   public MinioClient getMinioClient() throws InvalidPortException, InvalidEndpointException {

       return new MinioClient("http://192.168.137.10:9000","minioadmin","minioadmin");

   }

}
